FROM python:3.7.4
LABEL maintainer="476875553@qq.com"
RUN mkdir -p /home/SameReportApi
WORKDIR /home/SameReportApi/
RUN sed -i s@/deb.debian.org/@/mirrors.aliyun.com/@g /etc/apt/sources.list
RUN sed -i s@/security.debian.org/@/mirrors.aliyun.com/@g /etc/apt/sources.list
RUN apt-get clean
RUN apt-get update
RUN apt-get install -y vim
RUN git init
RUN git remote add origin https://gitee.com/hengheng98/SameReportApi.git
RUN git pull origin master
RUN pip3 install -r /home/SameReportApi/requirements.txt -i https://mirrors.aliyun.com/pypi/simple/